<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>返回</title>
		<script>
			function goBack()
			{
				history.back();
			}
			function showLoc()
			{
				alert("host:"+location.host);
				alert("host:"+location.hostname);
				alert("host:"+location.href);
			}
			function myreload()
			{
				location.reload();
			}
		</script>
	</head>
	<body>
		<input type="button" value="返回前一个" onclick="goBack()"/>
		
		<input type="button" value="jump" onclick="history.go(-1);"/>
		
		<input type="button" value="jump" onclick="showLoc();"/>
		
		<input type="button" value="刷新" onclick="location.reload();"/>
		
		<a href="javascript:myreload()">刷新</a>
		<a href="js3.html">去第三个js</a>
		<input type="button" value="跳到bing" onclick="location.replace('https://www.baidu.com')"/>
	</body>
</html>
